package com.yunji.common.base;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * @author : peter-zhu
 * @date : 2024/12/25 10:18
 * @description : TODO
 **/
@Data
public class RuoYiBaseEntity extends PageDTO implements java.io.Serializable, ParamsHandleDTO {

    @JsonIgnore  // 避免 Jackson 处理 params
    private Map<String, Object> params = new HashMap<>();

    public Map<String, Object> getParams() {
        return ParamsHandleDTO.super.get();
    }

    private String createBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    private String updateBy;

    private Date updateTime;

    private String remark;
}
